(function(d, s, id) {
	var js, fjs = d.getElementsByTagName(s)[0];
	if (d.getElementById(id))
		return;
	js = d.createElement(s);
	js.id = id;
	js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1&appId=282237648526720";
	fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

function loginWithFacebook() {
	FB.login(function(response) {
				if (response.authResponse) {
					window.location = "http://localhost:8080/rsrpp/login.html?token="
							+ response.authResponse.accessToken;
				} else {
					console.log('User cancelled login or did not fully authorize.');
					window.location = "http://localhost:8080/rsrpp/login.html?error=1";}
				}, {scope : 'email'});
}

function loginWithFacebook2() {
	FB.login(function(response) {
				if (response.authResponse) {
					window.location = "http://rsrpp.elasticbeanstalk.com/login.html?token="
							+ response.authResponse.accessToken;
				} else {
					console.log('User cancelled login or did not fully authorize.');
					window.location = "http://rsrpp.elasticbeanstalk.com/login.html?error=1";}
				}, {scope : 'email'});
}

"http://connect.facebook.net/en_US/all.js #appId=282237648526720&amp;xfbml=1;";